let fs = require('fs');
let buf = '';

process.stdin.on('readable', function() {
    let chunk = process.stdin.read();
    if (chunk) buf += chunk.toString();
});

process.stdin.on('end', function() {
    let n = parseInt(buf);
    let m = parseInt(n / 2);
    let s = "";
    
    for (let i = 0; i < n; ++i)
    {
        s = "";
        for (let j = 0; j < n; ++j)
        {
            if (Math.abs(i - m) + Math.abs(j - m) <= m) s += '*';
            else s += ' ';
        }
        console.log(s);
    }
});